package Mypackage.Runner;


import com.intellij.execution.filters.Filter;
import com.intellij.execution.filters.RegexpFilter;
import com.intellij.openapi.project.Project;


public class PerlLineErrorFilter extends RegexpFilter implements Filter {
    //e.g. E:/IdeaProjects/IDLua/src/test.lua:17:
    // E:\Lua\5.1\lua.exe: E:/IdeaProjects/IDLua/test-new.lua:52: bad argument #1 to 'pairs' (table expected, got nil)
    private static final String FILTER_REGEXP = /* "^[^:]+:[^:]+: "*/
            " at " + RegexpFilter.FILE_PATH_MACROS + " line " + RegexpFilter.LINE_MACROS;// + ":";

    public PerlLineErrorFilter(Project project) {
        //: line (\d+):
        super(project, FILTER_REGEXP);
    }
}
